home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 May / macformat-050.iso / Shareware Plus / Developers / Find_icon folder / ⁄* changes *⁄.doc next >
Encoding:
Text File  |  1997-01-25  |  4.8 KB  |  240 lines  |  [TEXT/CWIE]

  1. #ifdef justacomment
  2.  
  3. 1/19/97        Version 2.0 release.
  4. -------
  5.  
  6. Constructed safe fat resource version.
  7.  
  8.  
  9. 1/12/97        Code cleanup for a new release
  10. -------
  11.  
  12. Stopped avoiding the use of static variables.
  13. Use MoreFiles in unmodified form to get desktop icons.
  14. Added comments to header files, in a style similar to MoreFiles.
  15. Added const keyword to some function parameters.
  16. New function ExpandMetaSelector replaces some code that had
  17. appeared in several functions.
  18.  
  19.  
  20. 8/10/96
  21. -------
  22.  
  23. Renamed Get_resource_icons to Get1_resource_icons, and created a new
  24. Get_resource_icons that does not use Get1Resource.  Purpose: to make
  25. Get_normal_folder_icon use GetResource, for Aaron compatibility.
  26.  
  27.  
  28. 7/1/95
  29. ------
  30.  
  31. Get_normal_folder_icon: Called FindFolder for the system folder on the
  32. volume containing the given folder, not the boot disk.  I figure that
  33. any system folder should get the special icons.
  34.  
  35.  
  36. 10/22/94
  37. --------
  38.  
  39. In DTGetIconSuite, fail if there is no mask, not just if the suite is
  40. completely empty.
  41.  
  42.  
  43. 10/4/94
  44. -------
  45.  
  46. In Get_normal_file_icon, if the attempt to get a generic icon from the System
  47. fails, try once more with genericDocumentIconResource.  This is because
  48. files of type 'shlb' had a System icon in 7.1, but it's not there in 7.5.
  49.  
  50.  
  51. 10/2/94
  52. -------
  53.  
  54. Get_normal_file_icon, Get_normal_folder_icon, Get_custom_file_icon:
  55. fallback options
  56.  
  57. Get_volume_icon: eliminate the selector argument, since the driver
  58. icon only comes in one size.
  59.  
  60. Removed the label as an argument of Find_icon, instead using SetSuiteLabel.
  61.  
  62.  
  63. 7/31/94
  64. -------
  65.  
  66. Ported to MW C, changed to PROC resource with a main entry routine
  67. that finds the icon file name and returns the Find_icon address.
  68.  
  69. Used MoreFiles code to get desktop icons, including those from an
  70. old-style Desktop file.
  71.  
  72. Changed Get1IconSuite to return an error if no mask is found.
  73.  
  74. Changed Find_icon so that if we failed to get a custom folder
  75. icon, we fall back to a normal icon.
  76.  
  77.  
  78. 6/6/94
  79. ------
  80.  
  81. Fixed a bug introduced in the last change.
  82.  
  83.  
  84. 5/29/94
  85. -------
  86.  
  87. Added a case for the trash folder to Get_normal_folder_icon.
  88.  
  89.  
  90. 5/28/94
  91. -------
  92.  
  93. Fixed memory leak in Get_normal_file_icon, which occurred if the creator code
  94. was found in the DTDB but icons were not found.  Reported by Peter Marx.
  95.  
  96.  
  97. 5/1/94
  98. ------
  99.  
  100. In Get_custom_folder_icon, use FSMakeFSSpec.  Suggested by Brent Taylor.
  101.  
  102.  
  103. 4/19/94
  104. -------
  105.  
  106. Suggestions from Troy Gaul:
  107.  
  108. In Get_normal_folder_icon, added default for a generic folder inside the System Folder.
  109.  
  110. In Find_generic_icon_id, added 'thng' type with genericExtensionIconResource.
  111.  
  112.  
  113. 3/26/94
  114. -------
  115.  
  116. Updated for newer Apple headers, so that I don't need my own extra
  117. Icons-JW header any more.
  118.  
  119.  
  120. 2/2/94
  121. ------
  122.  
  123. Modified In_one_desktop to ignore the non-icon 'paul' data sometimes
  124. found in the desktop database.
  125.  
  126.  
  127. 1/26/94
  128. -------
  129.  
  130. Test for ejected volumes.  Looking for an icon is probably not so important
  131. that we need to ask for the disk to be inserted.  In the case of the volume
  132. icon, we can still get the icon, and can return the ttOffline transform.
  133.  
  134.  
  135. 1/5/94
  136. ------
  137.  
  138. Rewrote Get1IconSuite using ForEachIconDo instead of skanky method
  139. involving manipulation of the resource chain.
  140.  
  141.  
  142. 12/29/93
  143. --------
  144.  
  145. In Get_icon, add a default case.  Previously, bogus mini icons had been
  146. returned.
  147.  
  148.  
  149. 12/21/93
  150. --------
  151.  
  152. In Get_normal_folder_icon and Get_volume_icon, call Copy_each_icon.
  153. Wrote Get_resource_icons as a wrapper for Get1IconSuite and
  154. Copy_each_icon.
  155.  
  156. In Get_normal_file_icon, look for Finder icons before desktop icons,
  157. since the Finder apparently works that way.
  158.  
  159.  
  160. 11/2/93
  161. -------
  162.  
  163. In Find_icon, added a desperate attempt to get a volume icon even if
  164. the PBGetCatInfo call failed.  This makes a difference for a CD-ROM
  165. volume, if I have flipped open the cover of my CD drive.
  166.  
  167.  
  168. 10/4/93
  169. -------
  170.  
  171. Switched order of Control calls in Get_volume_icon, to get right
  172. floppy icon.
  173.  
  174.  
  175. 10/1/93
  176. -------
  177.  
  178. Initialized the csParam pointer to nil in Get_volume_icon, for paranoia.
  179.  
  180.  
  181. 9/29/93
  182. -------
  183.  
  184. Added some AppleShare folder types to Find_generic_icon_id.
  185.  
  186.  
  187. 9/28/93
  188. -------
  189.  
  190. In Get_volume_info, try csCode = 21 before csCode = 22.
  191. Under A/UX 3.0, the latter was failing without returning an error code.
  192.  
  193.  
  194. 1.0.4  9/12/93
  195. -----
  196.  
  197. Added 'adrp' type to Find_generic_icon_id.
  198.  
  199.  
  200. 1.0.3  8/11/93
  201. -----
  202.  
  203. Added more cases for folder aliases to Find_generic_icon_id.  Removed
  204. the creator type from its API.  Changed to assembly language to declare
  205. a static array in PC-relative storage.
  206.  
  207.  
  208. 1.0.2 7/20/93
  209. -----
  210.  
  211. Surrounded OpenResFile calls with SetResLoad(false)...SetResLoad(true).
  212.  
  213. Changed the parameter of Get_icon_file_name from Str31 to Str255 to
  214. simplify the code.
  215.  
  216.  
  217. 1.0.1
  218. -----
  219.  
  220. In Get_normal_file_icon, change 'adrp' type to 'APPL' when looking
  221. for icons.
  222.  
  223.  
  224. 5/30/93        8:31 PM
  225.  
  226. Icon resources in the System file can remain as resource handles.
  227.  
  228.  
  229. 5/30/93        5:47 PM
  230.  
  231. Added Get1IconSuite.
  232.  
  233.  
  234. 5/30/93        1:33 AM
  235.  
  236. Turned Detacher into Copy_each_icon.  It was not proper to be calling
  237. DetachResource on resources in the System.
  238.  
  239. #endif
  240.